.app-sidebar {
  height: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
  box-shadow: var(--shadow-1);
  border-right: 1px solid var(--color-border-1);
  padding-top: 20px;
}

.arco-menu {
  background: transparent;
  border: none;
}

.arco-menu-vertical .arco-menu-item,
.arco-menu-vertical .arco-menu-group-title,
.arco-menu-vertical .arco-menu-pop-header,
.arco-menu-vertical .arco-menu-inline-header {
  padding: 0 16px;
  margin: 4px 8px;
  border-radius: var(--border-radius-lg);
  transition: all 0.2s ease;
  color: var(--color-text-1);
  font-weight: 500;
  display: flex;
  align-items: center;
}

/* 改进的选中效果 - 使用左侧边框指示器 */
.arco-menu-item.arco-menu-selected {
  background-color: var(--color-bg-2);
  color: var(--color-primary);
  font-weight: 600;
  position: relative;
}

.arco-menu-item.arco-menu-selected::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-primary-hover));
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.arco-menu-item.arco-menu-selected .arco-icon {
  color: var(--color-primary);
}

.arco-menu-item:hover {
  background-color: var(--color-bg-2);
  color: var(--color-primary);
  transform: translateX(4px);
}

.arco-menu-item.arco-menu-selected:hover {
  background-color: var(--color-bg-2);
  transform: translateX(0);
}

.arco-menu-inline-content .arco-menu-item {
  margin-left: 16px;
}

/* 图标样式优化 */
.arco-menu-item .arco-icon {
  color: var(--color-text-2);
  font-size: 16px;
  margin-right: 8px;
  min-width: 16px;
}

.arco-menu-item:hover .arco-icon {
  color: var(--color-primary);
}

.arco-menu-item.arco-menu-selected .arco-icon {
  color: var(--color-primary);
}

/* 收缩状态下的样式 */
.arco-layout-sider-collapsed .arco-menu-item {
  justify-content: center;
  padding: 0 12px;
}

.arco-layout-sider-collapsed .arco-menu-item .arco-icon {
  margin-right: 0;
}

.arco-layout-sider-collapsed .arco-menu-item span:not(.arco-icon) {
  display: none;
}

/* 收缩状态下选中效果 */
.arco-layout-sider-collapsed .arco-menu-item.arco-menu-selected {
  background-color: var(--color-bg-2);
  position: relative;
}

.arco-layout-sider-collapsed .arco-menu-item.arco-menu-selected::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-primary-hover));
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

/* 菜单标题在收缩状态下的样式 */
.arco-layout-sider-collapsed .arco-menu-item.arco-menu-selected::after {
  display: none;
}